package cn.achao.csr.api.model.entity;

import java.util.Date;
import java.io.Serializable;
import cn.achao.csr.base.entity.BaseEntity;
import com.baomidou.mybatisplus.annotation.*;
import lombok.Data;

/**
 * 消息标记表(ChatMsgMark)实体类
 *
 * @author achao
 * @since 2025-02-06 23:14:12
 */
@Data
public class ChatMsgMark extends BaseEntity implements Serializable {
    private static final long serialVersionUID = 701810127330015406L;

    @TableId(type = IdType.ASSIGN_ID)
    private Long id = super.getId();
    /**
     * 消息表id
     */
    private Long msgId;
    /**
     * 标记人uid
     */
    private Long uid;
    /**
     * 标记类型 1点赞 2举报
     */
    private Integer type;
    /**
     * 消息状态
     */
    private String status;
    /**
     * 创建者
     */
    private String createBy;
    /**
     * 更新者
     */
    private String updateBy;
    /**
     * 创建时间
     */
    private Date createTime;
    /**
     * 更新时间
     */
    private Date updateTime;
    /**
     * 是否删除
     */
    private Boolean isDel;
    /**
     * 备注
     */
    private String remark;

    /**
     * INSERT INTO `csr`.`leaf_alloc` (`biz_tag`, `max_id`, `step`, `description`)
     * VALUES ('seq_chat_msg_mark', 1, 100, 'ChatMsgMark主键');
     * @return
     */
    @Override
    public String sequenceCode() {
        return "seq_chat_msg_mark";
    }
    
    public ChatMsgMark(Boolean generateId) {
        super(generateId);
    }
}

